package org.springframework;

import org.springframework.beans.BeansException;
import org.springframework.beans.factory.config.BeanFactoryPostProcessor;
import org.springframework.beans.factory.config.ConfigurableListableBeanFactory;

/**
 * 自定义MyBeanFactoryPostProcessor
 * 实现BeanFactoryPostProcessor
 * 在spring-config.xml定义bean，注册到容器中
 */
public class MyBeanFactoryPostProcessor implements BeanFactoryPostProcessor {
	@Override
	public void postProcessBeanFactory(ConfigurableListableBeanFactory beanFactory) throws BeansException {
		System.out.println("执行自定义的MyBeanFactoryPostProcessor...");
	}
}
